//
//  SpecialCell.m
//  Share_Home_F
//
//  Created by dllo on 15/4/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SpecialCell.h"

@implementation SpecialCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 15, 100, 100)];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        
        self.myTitle = [[UILabel alloc] initWithFrame:CGRectMake(110, 10, 260, 30)];
        [self.contentView addSubview:self.myTitle];
        self.myTitle.font = [UIFont fontWithName:@"Courier-BoldOblique" size:15];
        [_myTitle release];
        
        
        self.myShortSummary = [[UILabel alloc] init];
        [self.contentView addSubview:self.myShortSummary];
        self.myShortSummary.numberOfLines = 0;
       [self.myShortSummary sizeToFit];
        self.myShortSummary.font = [UIFont systemFontOfSize: 12];
        [_myShortSummary release];
        
        
        self.Myupdate = [[UILabel alloc] init];
        [self.contentView addSubview:self.Myupdate];
        self.Myupdate.numberOfLines = 0;
        [self.Myupdate sizeToFit];
        self.Myupdate.font = [UIFont systemFontOfSize: 12];

        [_Myupdate release];
        
       self.Mykeyword = [[UILabel alloc] init];
        [self.contentView addSubview:self.Mykeyword];
        self.Mykeyword.numberOfLines = 0;
        [self.Mykeyword sizeToFit];
        self.Mykeyword.font = [UIFont systemFontOfSize: 12];

        [_Mykeyword release];
        
        
        
    }
    return self;
}
-(void)layoutSubviews {
    [super layoutSubviews];

    self.myShortSummary.frame = CGRectMake(110, 60, 275, 70);
    self.Myupdate.frame = CGRectMake(110, 40, 100, 20);
    self.Mykeyword.frame = CGRectMake(210, 40, 175, 20);
   
    
}

@end
